<template>
  <div class="archive-receive-page">
    <!-- 页面标题 -->
    <div class="page-header">
      <h1>档案接收</h1>
      <p>上传新档案，开始数字化之旅</p>
    </div>

    <!-- 上传档案 -->
    <div class="upload-section">
      <div class="section-header">
        <h3><i class="el-icon-upload2"></i> 上传档案</h3>
      </div>
      
      <div class="upload-area">
        <div class="upload-form">
          <div class="form-row">
            <div class="form-item">
              <label>选择文件</label>
              <div class="file-upload">
                <el-button type="primary" plain>选择文件</el-button>
                <span class="upload-text">或将文件拖拽到此处</span>
              </div>
            </div>
          </div>
          
          <div class="form-row">
            <div class="form-item">
              <label>档案描述</label>
              <el-input
                v-model="archiveDescription"
                type="textarea"
                :rows="4"
                placeholder="请输入档案的简要描述..."
                style="width: 100%;"
              ></el-input>
            </div>
          </div>
          
          <div class="form-actions">
            <el-button type="primary" icon="el-icon-upload2">上传</el-button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ArchiveReceive',
  data() {
    return {
      archiveDescription: ''
    }
  },
  methods: {
    uploadArchive() {
      // 上传档案逻辑
    }
  }
}
</script>

<style scoped>
.archive-receive-page {
  padding: 0;
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.page-header p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.upload-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 16px;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
}

.section-header h3 i {
  margin-right: 8px;
  color: #667eea;
}

.upload-form {
  max-width: 600px;
}

.form-row {
  margin-bottom: 20px;
}

.form-item label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-text {
  color: #666;
  font-size: 14px;
}

.form-actions {
  margin-top: 30px;
}
</style> 